package com.cal.utms.action.maintenance;

import com.cal.utms.dto.maintenance.DealTypeDto;
import com.cal.utms.model.maintenance.DealTypeModel;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.ActionSupport;

public class DealTypeAction extends ActionSupport implements ModelDriven<DealTypeDto> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private DealTypeDto dealTypeDto = new DealTypeDto();
	DealTypeModel model = new DealTypeModel();

	public String getRolloverDealTypes() {
		dealTypeDto.setDealTypeDtos(model.getRolloverDealtype());
		dealTypeDto.setSuccess(true);
		return Action.SUCCESS;
	}

	@Override
	public DealTypeDto getModel() {
		return dealTypeDto;
	}

	public DealTypeDto getDealTypeDto() {
		return dealTypeDto;
	}

	public void setDealTypeDto(DealTypeDto dealTypeDto) {
		this.dealTypeDto = dealTypeDto;
	}

}
